package com.scsj.supermarket.view.activity.ordermodel;

import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.scsj.supermarket.R;
import com.scsj.supermarket.adapter.InterFlowAdapter;
import com.scsj.supermarket.bean.InterFlowBean;
import com.scsj.supermarket.view.activity.baseactivitymodel.BaseActivity;

import java.util.ArrayList;
import java.util.List;

/**
 * 退款详情
 */
public class RufundDetailActivity extends BaseActivity {

    private RecyclerView rufund_rv;
    private InterFlowAdapter adapter;
    private List<InterFlowBean> interFlowBeans;

    @Override
    protected void createView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_rufund_detail);
        initToolbar();
        setToolbarTitle("申请退款");
        hasBack(true);
    }

    @Override
    protected void initView() {
        rufund_rv = findViewById(R.id.rufund_rv);
        rufund_rv.setLayoutManager(new LinearLayoutManager(this));
        rufund_rv.setNestedScrollingEnabled(false);
    }

    @Override
    protected void initListener() {
    }

    @Override
    protected void initData() {

        interFlowBeans = new ArrayList<>();
        interFlowBeans.add(new InterFlowBean("尊敬的用户，你的订单已拦截，请等候请等候请等候请等候请等候请等候请等候", "2016 0502 11:22:20", 0));
        interFlowBeans.add(new InterFlowBean("尊敬的用户，你的订单已拦截，请等候请等候请等候请等候请等候请等候请等候", "2016 0502 11:22:20", 0));
        interFlowBeans.add(new InterFlowBean("尊敬的用户，你的订单已拦截，请等候请等候请等候请等候请等候请等候请等候请等候请等候请等候", "2016 0502 11:22:20", 0));
        interFlowBeans.add(new InterFlowBean("尊敬的用户，你的订单已拦截，请等候请等候请等候请等候请等候请等候请等候", "2016 0502 11:22:20", 0));
        interFlowBeans.add(new InterFlowBean("尊敬的用户，你的订单已拦截，请等候请等候请等候请等候请等候请等候请等候请等候请等候请等候请等候", "2016 0502 11:22:20", 0));
        interFlowBeans.add(new InterFlowBean("尊敬的用户，你的订单已拦截，请等候请等候请等候请等候请等候请等候请等候请等候请等候请等候请等候请等候请等候请等候请等候请等候请等候", "2016 0502 11:22:20", 0));

        adapter = new InterFlowAdapter(interFlowBeans);
        rufund_rv.setAdapter(adapter);
    }
}
